3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage display groups in general.
You can use the Q3DisplayGroup_GetType function to determine the type of a display group.
TQ3ObjectType Q3DisplayGroup_GetType (TQ3GroupObject group);
The Q3DisplayGroup_GetType function returns, as its function result, the type of the display group specified by the group parameter. Q3DisplayGroup_GetType returns one of these values:
kQ3DisplayGroupTypeIOProxy
kQ3DisplayGroupTypeOrdered
If Q3DisplayGroup_GetType cannot determine the type of a group or an error occurs, it returns kQ3ObjectTypeInvalid .
You can use the Q3DisplayGroup_GetState function to get the current state of a display group.
TQ3Status Q3DisplayGroup_GetState (
TQ3GroupObject group,
TQ3DisplayGroupState *state);
The Q3DisplayGroup_GetState function returns, in the state parameter, a pointer to a state value for the display group specified by the group parameter. The state value is a set of flags that determine how a display group is traversed during rendering or picking, or during computation of a bounding box or sphere. See "Group State Flags" for a description of the flags currently defined for a group state value.
You can use the Q3DisplayGroup_SetState function to set the state of a display group.
TQ3Status Q3DisplayGroup_SetState (
TQ3GroupObject group,
TQ3DisplayGroupState state);
The Q3DisplayGroup_SetState function sets the state value of the display group specified by the group parameter to the value pointed to by the state parameter. See "Group State Flags" for a description of the flags currently defined for a group state value.
You can use the Q3DisplayGroup_Submit function to submit a display group for drawing, picking, bounding, or writing.
TQ3Status Q3DisplayGroup_Submit (
TQ3GroupObject group,
TQ3ViewObject view);
Previous | QD3D Book | Overview | Chapter Contents | Next |